package com.jf.springboot.web;

import com.jf.springboot.bean.Furn;
import com.jf.springboot.service.FurnService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User:22954
 * Date:2024-12-09
 * Time:13:37
 */
@RequestMapping("/furn")
@RestController
public class FurnController {
    @Resource
    private FurnService furnService;
    @GetMapping("/list")
    public List<Furn> getFurn() {
        List<Furn> furnList = furnService.list();
        return furnList;
    }
}
